import request from "@/utils/axios";
// 获取加密key
const getPublicKey = query => {
  return request.post("/authApi/getPublicKey", query);
};
// 登录
const login = query => {
  return request.post("/auth/login", query);
};
// 登出
const logout = query => {
  return request.post("/auth/logout", query);
};
// 获取登录用户权限
const getLoginPermission = query => {
  return request.post("/auth/getLoginUser", query);
};

export default {
  getPublicKey,
  login,
  logout,
  getLoginPermission
};
